package com.css.dzj.dzjap.modules.administration.punish.service;

import com.css.dzj.dzjap.modules.administration.punish.entity.Punish;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

public interface PunishService {

    //查
    Punish getPunish(String id);
    //添加
    String addPunish(Punish push);
    //修改
    void update(Punish push);
    //删除
    Boolean deletePunish(String id);
    //分页查询
    QueryResults<Punish> getAllPunish(Pageable pageable);
    //多条件分页查询
    QueryResults<Punish> getAllConPunish(Pageable pageable, String recordUniqueIdentity, String superviseItemCode, String punishActionName, String punishActionCode, String implementInstitution, String implementInstitutionCode);

    HashMap getCount();

    Long getOpCheck(HttpServletRequest request);

    HashMap getCountByYear(String year);

    QueryResults<Punish> getAll(Pageable pageRequest,String superviseItemCode, String punishActionName,String caseSource,String punishType);

    List<Punish> getAllList(String superviseItemCode, String punishActionName, String caseSource, String punishType);

    Long getNum();
    List<Punish> getByIds(List<String> list);
}

